/*
 * @Description:
 * @Author: maxyang
 * @Date: 2022-07-09 19:20:32
 * @LastEditTime: 2022-07-09 19:52:09
 * @LastEditors: liutq
 * @Reference:
 */
package service

import (
	"github.com/maxyang107/jinglan/common"
	"github.com/maxyang107/jinglan/model/banner"
)

var (
	// 所有的业务类都在这儿声明
	BannerService = &BannerSer{}
)

type BannerSer struct{}

func (b BannerSer) GetBannerList() *banner.BannerList {
	return banner.GetBannerList()
}

func (b BannerSer) AddOrModifyBanner(param common.Banner) error {
	return banner.AddOrModifyBanner(param)
}

func (b BannerSer) GetBannerListForAdmin() *banner.BannerList {
	return banner.GetBannerListForAdmin()
}
